﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001229 RID: 4649
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartRaidScRsp : IMessage<StartRaidScRsp>, IMessage, IEquatable<StartRaidScRsp>, IDeepCloneable<StartRaidScRsp>, IBufferMessage
	{
		// Token: 0x17003AF1 RID: 15089
		// (get) Token: 0x0600D07A RID: 53370 RVA: 0x00231B39 File Offset: 0x0022FD39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartRaidScRsp> Parser
		{
			get
			{
				return StartRaidScRsp._parser;
			}
		}

		// Token: 0x17003AF2 RID: 15090
		// (get) Token: 0x0600D07B RID: 53371 RVA: 0x00231B40 File Offset: 0x0022FD40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartRaidScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AF3 RID: 15091
		// (get) Token: 0x0600D07C RID: 53372 RVA: 0x00231B52 File Offset: 0x0022FD52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartRaidScRsp.Descriptor;
			}
		}

		// Token: 0x0600D07D RID: 53373 RVA: 0x00231B59 File Offset: 0x0022FD59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidScRsp()
		{
		}

		// Token: 0x0600D07E RID: 53374 RVA: 0x00231B64 File Offset: 0x0022FD64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidScRsp(StartRaidScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D07F RID: 53375 RVA: 0x00231BB0 File Offset: 0x0022FDB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRaidScRsp Clone()
		{
			return new StartRaidScRsp(this);
		}

		// Token: 0x17003AF4 RID: 15092
		// (get) Token: 0x0600D080 RID: 53376 RVA: 0x00231BB8 File Offset: 0x0022FDB8
		// (set) Token: 0x0600D081 RID: 53377 RVA: 0x00231BC0 File Offset: 0x0022FDC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003AF5 RID: 15093
		// (get) Token: 0x0600D082 RID: 53378 RVA: 0x00231BC9 File Offset: 0x0022FDC9
		// (set) Token: 0x0600D083 RID: 53379 RVA: 0x00231BD1 File Offset: 0x0022FDD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GAMNEPOEGHM Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x0600D084 RID: 53380 RVA: 0x00231BDA File Offset: 0x0022FDDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartRaidScRsp);
		}

		// Token: 0x0600D085 RID: 53381 RVA: 0x00231BE8 File Offset: 0x0022FDE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartRaidScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Scene, other.Scene) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D086 RID: 53382 RVA: 0x00231C38 File Offset: 0x0022FE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D087 RID: 53383 RVA: 0x00231C8D File Offset: 0x0022FE8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D088 RID: 53384 RVA: 0x00231C95 File Offset: 0x0022FE95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D089 RID: 53385 RVA: 0x00231CA0 File Offset: 0x0022FEA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D08A RID: 53386 RVA: 0x00231CFC File Offset: 0x0022FEFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D08B RID: 53387 RVA: 0x00231D54 File Offset: 0x0022FF54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartRaidScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new GAMNEPOEGHM();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D08C RID: 53388 RVA: 0x00231DBC File Offset: 0x0022FFBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D08D RID: 53389 RVA: 0x00231DC8 File Offset: 0x0022FFC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.scene_ == null)
					{
						this.Scene = new GAMNEPOEGHM();
					}
					input.ReadMessage(this.Scene);
				}
			}
		}

		// Token: 0x04005394 RID: 21396
		private static readonly MessageParser<StartRaidScRsp> _parser = new MessageParser<StartRaidScRsp>(() => new StartRaidScRsp());

		// Token: 0x04005395 RID: 21397
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005396 RID: 21398
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04005397 RID: 21399
		private uint retcode_;

		// Token: 0x04005398 RID: 21400
		public const int SceneFieldNumber = 1;

		// Token: 0x04005399 RID: 21401
		private GAMNEPOEGHM scene_;
	}
}
